package com.axxy.factory;

/**
 * @author 一缕茜阳
 * @date 2021/7/27
 */
public class FactoryMethodDemo {
    public static void main(String[] args) {
        FriedYogurtStore store = new FriedYogurtStore(new SuZhouFriedYogurtFactory());
        FriedYogurt friedYogurt = store.orderFriedYogurt("芒果");
        System.out.println(friedYogurt.getMaterial());
    }
}
